package crmdna.mail;


public class MandrillEventProp {
  public long ts;
  public String event;
  public String url;
  public String ip;
  public String user_agent;

  public MandrillLocationProp location;
  public MandrillUserAgentParsedProp user_agent_parsed;
  public String _id;

  public MandrillMessageProp msg;

  // to capture sync events
  public String type;
  public String action;

  public String getClient() {
    if (msg == null)
      return null;

    if (msg.metadata == null)
      return null;

    if (!msg.metadata.containsKey("client"))
      return null;

    return msg.metadata.get("client");
  }
}
